import { Controller, Get, Query } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { InviteRelation_Service } from './inviteRelation.service';
import { util_ApiResponse_Base } from '@/common/util/apiResponse';
import { util_Index_ReturnContent } from '@/common/util/index';
import { InviteRelation_InviteListFind_Dto } from './assets/inviteRelation.dto';

@Controller('/adm/inviteRelation')
@ApiTags('inviteRelation 推广')
export class InviteRelation_Controller {
  constructor(private readonly inviteRelation_Service: InviteRelation_Service) {}

  @Get('/inviteList')
  @util_ApiResponse_Base({
    dataType: 'dataType_list',
    summary: '推广者邀请明细列表',
  })
  async inviteRelation_InviteListFindByPage(@Query() query: InviteRelation_InviteListFind_Dto) {
    return util_Index_ReturnContent(
      await this.inviteRelation_Service.inviteRelation_InviteListFindByPage(query),
    );
  }
}
